package com.zhongyu.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyu.pojo.Goods;
import com.zhongyu.pojo.GoodsType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsTypeMapper extends BaseMapper<GoodsType> {
    @Select("select * from smbms_goods_type ${ew.customSqlSegment}")
    List<GoodsType> findAll(Page page , @Param("ew") Wrapper wrapper);

    @Select("select * from smbms_goods_type where goods_Tpname=#{goodsTpname}")
    List<GoodsType>findByname(String goodsTpname);
}
